package com.sparrow.constant;

import java.sql.Date;
import java.sql.Timestamp;
/**
 * 常用常量
 * 
 * @author zhanglizhi
 * @date Jun 25, 2011 10:26:53 AM
 * @version 1.0
 */
public class COMMON {

	/**
	 * 用于保存空json串;如:jsonField:jsonValue 如果jsonValue也是一个json则空串返回该常量定义
	 */
	public static final String NULL_JSON = "''";
	public static final String ENTER_TEXT = "\r\n";
	public static final String ERROR_CSS_CLASS = "error";
	public static final String VALIDATE_CODE = "validateCode";

	/**
	 * 访问被拒绝
	 */
	public static final String ACCESS_DENIED = "Access Denied";
	/**
	 * 标准时间格式
	 */
	public static final String NORMAL_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

	/**
	 * 最小unix时间戳
	 */
	public static final Timestamp MIN_UNIX_TIMESTAMP = Timestamp
			.valueOf("1970-01-01 08:00:00");

	/**
	 * 北京时间最小时间戳 -MYSQL
	 */
	public static final Timestamp MIN_BEIJING_UNIX_TIMESTAMP_FOR_MYSQL = Timestamp
			.valueOf("1970-01-01 08:00:01");
	public static final Date MIN_BEIJING_UNIX_DATE_FOR_MYSQL = Date
			.valueOf("1970-01-01");
	/**
	 * 表示全部 数据库查询时使用
	 */
	public static final int ALL = -1;
	/**
	 * 字符串"0"
	 */
	public static final String ZORE = "0";
	/**
	 * 空链接
	 */
	public static final String NULL_LINK = "javascript:void(0);";
	public static final String EMPTY = "";
	public static int MAX_LOG_LENGTH = 10;

	public static final String LOCALHOST = "127.0.0.1";
	public static final String HTTP_PROTOCOL ="http://";
}
